// 原生js可以直接操作cookie  不方便获取
// 第三方的包 操作cookie

// 设置 Cookie.set(key,value)     localStorage.setItem(key,value)
// 获取 Cookie.get(key)           localStorage.getItem(key)
// 删除 Cookie.remove(key)        localStorage.removeItem(key)

import Cookies from 'js-cookie'

const TokenKey = 'hrsaas-74-token-nb'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
